
<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
  name: '',
  data() {
    return {

    }
  },
  computed:{
   ...mapState(['tabslist'])
  },
  created() {
    //浏览器刷新重新获取面包屑数据
    window.addEventListener("beforeunload", () => {
      sessionStorage.setItem("tabslist", JSON.stringify(this.tabslist));
    });
  },
}
</script>
<style lang='scss'>
body {
  margin: 0;
  padding: 0;
}
</style>